/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.neolokura.travian.helper.batch;

import ar.com.neolokura.travian.helper.facade.ServiceFacade;
import ar.com.neolokura.travian.helper.bo.object.TroopSenderObject;

/**
 * Usage: user password x y #spies
 * @author gustavo
 */
public class SendSpiesBatch {
    public static void main(String[] args) throws Exception{
        
        ServiceFacade facade = ServiceFacade.getInstance();
        
        facade.login(args[0], args[1]);
        
        Integer x = Integer.parseInt(args[2]);
        Integer y = Integer.parseInt(args[3]);
        Integer spies = Integer.parseInt(args[4]);
        
        TroopSenderObject senderObject = new TroopSenderObject(x, y, "raid");
        
        senderObject.setT3(spies);
        
        
        facade.sendTroops(senderObject);

        
    }
}
